package com.pope.framework.triage.modular.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 分诊级别信息表
 * </p>
 *
 * @author superpope
 * @since 2019-01-14
 */
@TableName("t_triage_grade_info")
@Data
@ApiModel(description= "分级信息")
public class GradeInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 系统主键
     */
    @TableId("ID")
    @ApiModelProperty(value = "分级主键ID，添加修改不需要赋值",dataType="Integer")
    private Integer id;

    /**
     * 级别名称
     */
    @TableField("NAME")
    @ApiModelProperty(value = "分级名称",dataType="String")
    @NotBlank(message="分级名称不能为空")
    private String name;

    /**
     * 患者特征
     */
    @TableField("FEATURE")
    @ApiModelProperty(value = "患者特征",dataType="String")
    private String feature;

    /**
     * 描述
     */
    @TableField("CONTENT")
    @ApiModelProperty(value = "描述",dataType="String")
    private String content;

    /**
     * 响应时间
     */
    @TableField("REPEAT_TIME")
    @ApiModelProperty(value = "响应时间（单位：分钟）",dataType="Integer")
    @NotNull(message="响应时间不能为空")
    private Integer repeatTime;

    /**
     * 颜色编码
     */
    @TableField("COLOR_ID")
    @ApiModelProperty(value = "颜色编码",dataType="String")
    private String colorId;

    /**
     * EGG1是0否
     */
    @TableField("EGG")
    @ApiModelProperty(value = "是否EGG 1是 0否",dataType="String")
    private Integer egg;
    
    @TableField("HOSPITAL_ID")
    
    @ApiModelProperty(value = "医院ID",dataType="Integer",required=true)
    private Integer hospitalId;
    
    @TableField("DANGER")
    
    @ApiModelProperty(value = "危急程度",dataType="Integer",required=true)
    @NotNull(message="危急程度不能为空")
    private Integer danger;
    
    /**
     * 操作员标识
     */
    @TableField(value="SITE_ID",fill=FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "租户字段")
    private Integer siteId;
    /**
     * 操作员标识
     */
    @TableField(value="STAFF_ID",fill=FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "操作员标识",dataType="Integer")
    private Integer staffId;
    /**
     * 备注
     */
    @TableField("REMARK")
    @ApiModelProperty(value = "备注",dataType="String")
    private String remark;
    
    /**
     * 创建时间
     */
    @TableField(value="CREATETIME",fill=FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间",dataType="String")
    private String createtime;

    /**
     * 更新时间
     */
    @TableField(value="UPDATETIME",fill=FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间",dataType="String")
    private String updatetime;
    
    @TableField(value="CREATE_MAN",fill=FieldFill.INSERT)
    @ApiModelProperty(value = "创建人",dataType="String")
    private String  createMan;


}
